little refactoring for more ease of use, new method getId()