updated to add better error example