fixing use of inflate