goes to insert metadata if there're no errors