implemented missing object GateSpec and finilize the gate-set