check the function ref