dropped extra output
added summary fn