adding four programmable gates outputs