rename sine to therimin. fix some bugs in it