double gates pattern