passing params to user functions