optimised variables creation and initial loading