updating upgraded code to dictionary engine