added static var unitsAmount