also, am i using the ldx and indexing for arrays properly?