changed to using the builtin  function, now that I know its name