adjust unicas function and new scripts for old functions