Update input array access in funct