update docs and change variable name