objects sort of work, but still errors