reformmated code