kmap helper. made for a class.