before changing to array