renamed minutes variables to millisecs to better reflect the unit of time