separate math code
separating math code