therefore the input is an array of two dimensional values