typos, foget that there is no dict.has_key() method