added system to get vector direction