improving speed in getting data into data member