added equals methods to values