made addition gate working