making the function a variable