renamed isEqual to isEquals