fix method definition