removed .has_key method for dict