adding AvailableSizeAndReturnCode type