purge duplicate function

purge duplicate function