add understand gate