added time scaling