added remove.duplicates to make.table