find out type of input data