fixed bugs where I forgot to use new with constructors