set direction