Remove sideeffects