check the function ref 2