fix: refactoring side effects.