change parallel to serials
add some function
improved