added tols specification, key group fixed.