added comments for parallel processing