fix method def error