avoid duplicates in model