check input

Change-Id: I117ffe49fd6be34b07b094f0671244500ab44a53