removed deprecated balance() function