unifying direction vector into one