change to vector ibrary

added direction to