dynamically adding in rows and columns