make fix, prime more efficient