docs and changed to void functions