first test passes (though with a cheap hack)