added definition of copyEqualToValue()