load function now comileable