improving preset recipes code