added the minute check