create inflater in constructor and store it as field