set length of Array -1