remvoe useless code