parallel code that run on multiple cores