Mechanism of formation of shish kebab structures