added start and end index tracking