fixed method attribute check