check if there are related entries first before removing duplicates