fixing sample code to work with updated recipes