remove unneeded functions