add is_unique() to check samples