cleanup code after trigonometry battle