moved load to function