i did the same code but still there is flickering problem'