finish when row is not defined