updated refactor to improve variable name