finish the first phase