fixed typo with levels, all tests pass