create arrays from multi-inputs