handling _id from collections API