returns list instead of array