adding sampling