y must be a vector
example fixup