force median to only work for kernel size 3.