moving account logic