bars update problem solved usind Threads