start of k+ implementation of x/! logic change