rm useless function