added prime
mostly working