remove functions and some stuffs