saves expensive answer for problem 5