updating some changes in add to compare