added comments for threads