adding boilerplate and getParam func