updated parse function for recipe structure