rm useless functions