add primitives and render