working on dynamic time generation