changed timePercent to timeScale