parallel ML code added