calculate basic summary