code used for CGI billing