removing pem