eliminated duplicate asset loading function