modify comment and format codes