added some const to the methods