replacing Object.ReferenceEquals with object.ReferenceEquals