added generating _rev