get rid of primop structure