trying to solve issue with threadsafe