smooth matricies more intelligently