rearangement and categorization