move the format init to the beginning