clean up equation