add file for calculating offset to word location in index