add then comparing example