clean up useless functions