rm proto code