updated to print out a few more edge cases