working on intermediate form that will show directly to C code