bug fix: not returning an array