added boolean version of setToX