remove sampling function