intergrate addadict and lookupdict into original code, work 4/5