improved variable name, removing undefined function