added lookup functionallity