replaces only .at() with []