get the function