remove extra call to setDocExample