first step towards statefull effects