change const Scene * to const Scene & everywhere