added x, e, and pi replacement