improve dict
fix bug:add forward for next