syntax fixes, no longer psuedocode