removing pub keys