in comparison functions, compare actual values and not pointers