init loading function

changed name