using local thread variables
grouping threads into a group