added const to a couple of method arguments