fixed bug in returning results array