improve quantum's recipes code