scale up and down working in both modes