done problem 50, runs really slow, should fix