use autorelease pool more properly