changed doc arg back to non string