just fixed new function