prep for foxx sorting