added getFunction to function call