working array parsing