clean by useless functions