correct structure of return array