gates modeling