pointer deference instead of indexing