changing to array