corrected typo that had casscaded through the code