finish the second phase