optimization on Signalgenerator works now