working just on array/vector