fixing my mess, results returned as array now