add summRec and its test