fix multiple sequence of operations