the static method fixed, with quickfix in contructor