last element created in the loop is referenced so everything stays