starting graph population function