add samplewith operator