moved old code to lookup branch