change checkout to switch