more than an hour for 31 lines of code... what am i doing with my life... anyways, it works. I finally did the math right after it all went over my head over and over again.