refactored a variable name in the ress module