changed message resources as hierachial structure