fixed typos to make all tests pass