converting Pier to Magritte with pragmas