balance fixes, added leading zero function. Fix this function later