a minor edit here and there, todo: subsamplers