changed to haskey