adding setPrioity to RateThread