copied existing implementation of Synthesizer from quSynthesis