created gate model