changed timePercentage to timeScale