fix syntax
+ use index