removed unnecessary imports, added highly oscillatory function