automatic generation of time slot