summarize: added keepcolnames argument