added another test condition which I had ignored