removing useless lines from my code