set up basic function structure and parameters