removes duplicate record