moved one task from main to a thread