removes useless functions