complete the tomdoc