Worked on checkCompare