thread problems
wiew bug solved