Yes you're right, I should return $data, thanks