sample with multiple objects