move setting of some variables from 'Act' to 'Arrange' section