added max cmf
now have sampling without transforming