removes duplicate balance code in modules #183