small modifs on proto