reverted to recordarray return type