no longer blindly adding undefined values to last row