optimize preparation