splitted access function in object and array access