created device to switch vertices