check function call