bug in lookUp method