ensuring duplicate data does not get created