accessing property like indexing array