added direction translation