moved loading to the bottom