add summary type check