resource size retrieving functionality implementation