removed unnecessary prints; time comparison