removing useless lines of code