refactoring of the variables definitions