some changes done in both parall and serial