corrected row & columns correctly