hi alain and ioannis.

i switched vcc of lcd and made the other pins zero.when pic waked up i added flags = 0

and now working fine.

thanks for your response