added check on summary incase it was not provided