trying to get data before it exists fix