add check the thrift keyword func