added a load sequence function