Not working having problems integrating primitives