updated to fix typo variable