fixed method parsing