added various utility functions for recipes and used them