working on dynamic offsets and times