fixed method snippet