use rawvalue to compare value for repeat