remove side-effect