better resource structure