accounting for the most retarded boundary test cases ever. For f@#! sake UofT