got indices right for going forward and backward with words