public and sample