changed procedure name to funs