fix k and x