refactoring instances