passes most of the tests