minor refactoring on variable name