implemented some time generation