adding support for RSA
formatting code