refactored instructions