ok, there's just no explanation. the code does in fact work. test usually passes. wtf. shutting it up for now.