fixed static array indexing and ptr