adding null check on summary