change computation intensive part outside atomic{}