speed up problem 95 and 104