update inflate method