added gate tool