add access by index; change assert execution