add sequential version and call in helper.py