added comments to explain threading comments