code for primitives and operators