changed some vars to firstprivate
made some variables firstprivate