convert to 2D primitives