call list on cursor in metadata function