fixed required arg checking