smoothen transition