updated 1-d sim