remove irrelevant functions