cleaned up synth code