parallel code added