end loops with 'done'