fixed error: used wrong variable name