fixing index error on get_dow