erase unecessary functions