fix parsing into arrays