prevent exception when hashing content
rewrote with a backing arraylist