preverticalization and sampling improvements