working on inner representation of uip documents