fixed method calling mistake