removing duplicate key