got methods to compile, but compile error when running test