added ARY_PTR to acces the pointer and not the element for the given index