retrieve data from dataset and use them in the code

yes @russian-dima