add primitives definition