fixing datapath simulation 1