manage  array correctly