bit set working with x,n,y breaks with p