prototype from gdocs