removing useless functions