added checkType for function argument checking