mvd SAS to function, applied it to app frame