remove unneeded function.