main data pull function ready