fixed samples with value and snap