fixed bug that was generating incorrect CPT