part of potential threads implementation