changed indexing all to legal dates