fixed the indexing error. Had to use capital letters for the variables int he macro.