updated function prototypes with new params