removing duplicates from model