check arguments

Change-Id: I9a5a923ac74d1af2c5bb857dd089367b3fac041e