adding proto code