enable array's functions and correct the return problem