was missing a header for mathsfuncs