now adjusts starts and end indices based on number of hotspots