use inpect to get function args