added scaling of time