thanks alot for the hints you people provide.....
almost solved my problem...
just programmed the atmega 328 on internal clock and it works fine....
when i program it in 16mhz configuration then it is not working as it should ( I installed the clock to pin 9 , 10 with two 22 pf capacitors...)
i wonder i changed the crystals also to be sure that they are working as they should..... but still cant get them to work...