element access is changed to method access