fixing ref to require