refactoring resources; create argument