added auto scalling