fix logic errors
only pass prime
Store raw value