added equal, and the list functions to the primitives