deal with smooth transitions