added methods to retrieve data size with unit as parameter