eliminate duplicate function_call