bugfix: used memory located at the third colume, which index should be 2