How to find and use the following three function as I would expect?