refactoring custom reverse to an unshift injection