moved vids array to index so its phpable