handle Object types inside compare