add fields to documents