implemeted simple auto scale