adding in defaults and fixing another typo