Setting setting's direction