remove useless functions