since either dictionary or array is returned the signature should be changed to _id_