made problem 45 faster