added a little ktally for phase1