load stage function