observer naive impl
function for reaction on change