functionality to add rows