code passes tests (sometimes)