proto code