shift method and insert method