removing datatype dependency for getting data.docs