write row method