fix method scope