Wrote id_compare