code cleanup;
worked thread cannot be  background thread;