remove def function