made all compare functions