check size of input