add blank checks on indexes