handles no-argument functions now