function loading added