minor changes in math