now input array(s) could be usual or masked!