finish layout and route