define item_callback before referencing in Spice.render