typo
fixed arg checking