to debug edgecase