modified to check if data is already made
ugh minortypo