setting up actions and variables