modify the direction struction