fixed quote error, renamed var i into cpt