new "scr" function