better version of parallel code working