fixed constructor assignment bug data -> this.data