refactoring of resources