fixed awful condition, moved from most frequent first to rarest first piece order