re-format existing code