changed array format