final thrift code for presentation