problem was all the set functions equated pointers, not values pointed to