started comparison code