investors buy companies that align with durable themes that can withstand the negative sentiment on wall street cnbcs jim cramer said thursday the mad money hosts comments came after the dow jones industrial average and sp 500 closed lower for the fourth consecutive session the techheavy nasdaq composite also finished in the red as all three major us equity averages are headed for a negative week how do you handle an increasingly gloomy market ive got a solution you buy the stocks of companies that fit  broader themes ones that you can always buy more of if the stocks get clobbered cramer said the first one cramer highlighted is cybersecurity which he said is essential in a world where everythings increasingly networked and the bad guys just get smarter everyday in this industry he said crowdstrike is almost unrivaled with palo alto networks being one possible exception the second theme is anything that makes you look or feel better during the pandemic cramer said referring to companies such as signet jewelers and ulta beauty another durable theme that remains in place despite the covid delta variant or federal reserve policy is the digitization of everything cramer said one company that fits squarely within that trend is enterprise automation software maker uipath he said finally cramer said financial empowerment through technology has a bright future no matter what the current attitude on the street is this is an irrepressible story whether were talking about zero commission trading or artificial intelligence powered lending that lets you escape from your credit score shackles cramer said adding that affirm holdings and other companies in the buy now pay later industry also are promising