maybe it doen't work in the constructor