finish the procedure