throw error for unknow input