finished first_fit