correct acceptsample()