fixed prio controll
removed all errors