grab functions and parameters