added kFromAnyState macro