corner cases are a bitch