fixing up for my newest math library