adding switch matrix`