rewrote balance app