cleaned up changeTo code