finished manual gating