added scope to methods, but still get weird error