refactoring (adding path variables to referentiate more than once)