enhance summary code