remove useless function and commit function