move inbounds to outer statements