fixed typo that always returned empty array