utilizing worker variable & writing destructor