design of output stage