Why are you doing the insertion and not using append? Why does the order matter?