debugged synthesis algorithm via Ruediger