working on summary mode