dealing with some edge cases.