removing useless code