smooth glide formula