finishes the assignment