remove useless function creation