moved code to calculate offset for region GBK files to a separate method, for tidiness