remove duplicate function declarations