fixed some bug, now curve shifting works. Still doesn't reproduce Josh's result