make summary dynamic