copied vector case that uses vectors for scattering