add gate close