erase useless function