finished classify() in applydt