reorganize samples