fix #6 aactually transform primitives