proper returned values for duplicate entry