Refactor init to use sequence

new sequence function to better chain computations
Some refactor using sequence