check corner cases