first commit to branch for switching to sample based version
working sample based version, hardcore undersmoothing