clean parallel code
serial clean