start time matching code