fixes to compiler pass