changing object initialization to new scheme, noticed that some const pointers should not be const