pt is produced but still no correct output