modified parameters for thread functions