replacing math with expr