fixed test cases, too. now on to case c