test with bw algorithm
simulation prediction step added.