remove duplicate function call