removed the comments in inflate function