scalar functions now
reorg
scalar funcs