add document on comparison