extension with samples