working on  balance  checking ( client  side )