summary function toggle improved