+ samples count argument passing
~ fix warnings