now adding parallel computation