indenting
cap threads using grainSize