fixed error with var t being commented out