finally able to get rid of the base class, refined structures and added an insert() method, staticized a lot of the functions in structure files