loading in idle func