use logical(0) instead of empty row