reformate code