some comments, fixed the array dereference syntax