function pointers working for compares and assigns mostly