fixed method def error