updating uniforming sample