changed all vector types to array types