service: format code