converter for array