add links method, finish switch methods