small changes to thresh to make everything the same