added time comparison