refatoring vector