not accessing element outside the vector would be awesome