check arguments

Change-Id: I23cf6e3c04100ec021f913171bb469a221515584