changed 'ff' function to use builtin, add apvlv function