hw7 failed in two case