basic setup for recipe function