refresh a code format