origin
add priority to thread in constructor
changed scheduler with priority