fix and now returning an ugly array