solution to rally problems