integrate with simpson's 3/8
remove tmp