loading data and maks in view in 1 and 2 dimensions