start of resume code