setting up cycle loading