added defaultTo reference for type checks
 typo fixed