simplified argument checking