working codes
just before setting while loop : all workin now