inflator class improvement