change react_coord_bin to 2D matrix