return result in array