fix comment and delete unused function