handle one lined results correctly