added pagination getting all metadata