cmake is working properly now and so are the math fxns