delete unimportant functions and comments