use same way of handling it with a key name [$i]