fixed bug where I confused block and thread count