println mehtod is unable to acess the note variable but why ?