reformats code