change time to timeValues
small errors ->checks passed