simplify GetSmooth function.