add to function & write docs