added setting start and end time