fixed method call and variable typing