add sigmoid gate