small changes trying to get threading to be consistant