new sequential code portion for parallelize in GPU