update result checking for corner cases