duplicate check added