changed RSA to not do things outside of function definitions