refactoring - added request variable in the class