removes unnecessary threading logic