define func, send param