some updation in add to compare