delete some useless function to make the code clear