using different notating for array slicing