fixed id assignment to public this.id() method