refactored directions