corrections to recipe refactor