tweak to allow integer args to functions