Please move these two lines (41 and 42) into a separate method called `preFormat` which must be called separately.