smooth function in atomic