this should be a const method

the last semicolon is not needed (same for inlined methods below)