calls the function at lastarg