delete unused function.