added argument checking