finished the resume function