more changes, to check if last row is blank