removed typo, fixed array reference