added const to some getter functions