instantiate new class before sort