trying to fix rsa gen