add CallFunction method