clean useless func