added check on summary in case it was not provided