q is replaced by k in simplify