setting target direction