added array conversion to Vec