added sampling