waits for all the steps to finnish