assign formatter before init