getting info from provider, preparation of structure